package org.fanrui.hrm.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.fanrui.hrm.domain.Meal;

import java.util.Date;

/**
 * <p>
 * 套餐表 Mapper 接口
 * </p>
 *
 * @author fanrui
 * @since 2024-09-12
 */
public interface MealMapper extends BaseMapper<Meal> {

    /**
     * 保存套餐和登录关系
     *
     * @param loginId 登录id
     * @param mealId  套餐id
     */
    void saveRelationWidthLogin(@Param("loginId") Long loginId, @Param("mealId") Long mealId,
                                 @Param("expireTime") Date expireTime, @Param("state") int state);
}
